<?php
/**
 * @author Nguyễn Sơn Tùng <sontung.x305@gmail.com> <Y!M: terminator_nst> <Skype : joker.x305>
 * @version: 1.0
 * @copyright fteam.vn
 * Date: 26/06/2013
 * Time: 20:30
 */
?>
<div class="clearfix fix-float-left">
    <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
        'id'=>'menu-item-form',
        'enableAjaxValidation'=>true,
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true,
        )
    )); ?>
    <div class="alert alert-info">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        <p><strong>
                <span class="icon16  brocco-icon-mic"></span>
                <?php echo t('Fields with <span class="required">*</span> are required.','fcms'); ?>
            </strong></p>
    </div>
    <div class="row-fluid">
        <div class="span6">
            <?php echo $form->textFieldRow($model,'label',array('class'=>'span8','maxlength'=>255,'prepend'=>'<i class="entypo-icon-flash"></i>')); ?>

            <?php echo $form->textFieldRow($model,'link',array('class'=>'span8','maxlength'=>255,'prepend'=>'<i class="entypo-icon-flash"></i>')); ?>
        </div>
    </div>
    <div class="form-actions">
        <?php $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submit',
            'type'=>'primary',
            'label'=>$model->isNewRecord ? t('Create') : t('Save'),
        ));
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'reset',
            'label'=>t('Reset'),
        ));
        ?>
    </div>

    <?php $this->endWidget(); ?>
</div>